package cn.kp.learning.dao;

import cn.kp.learning.model.CoreUserPermission;
import cn.kp.learning.model.CoreUserPermissionExample;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface CoreUserPermissionDao {
    int countByExample(CoreUserPermissionExample example);

    int deleteByExample(CoreUserPermissionExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(CoreUserPermission record);

    int insertSelective(CoreUserPermission record);

    List<CoreUserPermission> selectByExample(CoreUserPermissionExample example);

    CoreUserPermission selectByPrimaryKey(HashMap<String, Object> hm);

    int updateByExampleSelective(@Param("record") CoreUserPermission record, @Param("example") CoreUserPermissionExample example);

    int updateByExample(@Param("record") CoreUserPermission record, @Param("example") CoreUserPermissionExample example);

    int updateByPrimaryKeySelective(CoreUserPermission record);

    int updateByPrimaryKey(CoreUserPermission record);
}